package com.nce.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 *敏感词
 * 
 * @author GT
 */
@Entity
//表名与类名不相同时重新定义表名.
@Table(name = "words")
//默认的缓存策略.
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Words extends IdEntity{	
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8073647018804778483L;
	private String words;
	private Integer weight;
	private Date ctime;
	
	
	
	
	public Date getCtime() {
		return ctime;
	}
	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}
	public String getWords() {
		return words;
	}
	public void setWords(String words) {
		this.words = words;
	}
	public Integer getWeight() {
		return weight;
	}
	public void setWeight(Integer weight) {
		this.weight = weight;
	}
	@Override
	public String toString() {
		return "Words [ctime=" + ctime + ", weight=" + weight + ", words="
				+ words + ", id=" + id + "]";
	}
	
	
	
	
	
}
